<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>New Friend Request</title>
<style type="text/css">
p {font-family:Arial, Helvetica, sans-serif; font-size: 11px;}
select{ width: 150px;
}
</style>
<SCRIPT type="text/javascript" src="loadfriends.js"></SCRIPT>
<script type="text/javascript">
function toserver(f) {

   var r = new Array();
   for (var i = 0; i < f.friends.options.length; i++){
       if (f.friends.options[i].selected){
    	   r[i] = f.friends.options[i].value;
    	    if(r[i]!=null) {
	    		alert(r[i]);    
    	  	}
	    }
    }


}
</script>
</head>

<body>
<form id="f">
  <p><strong>The following users would like to add you as a friend.<br />
  </strong><br />
    <strong>
  <select name="friends" size="5" multiple="multiple" id="friends" style="width: 150;">
  </select>
  </strong></p>
  <p>
    <label>
    <input type="submit" name="Submit" value="Approve" onclick="toserver(this.form);"/>
    </label>
    <input type="submit" name="Submit2" value="Decline" onclick="toserver(this.form);"/>
  </p>
</form>
</body>
</html>
